var mongoose = require('mongoose')
//mongoose.connect('mongodb://localhost:27017/Ants')

var messageScheam = mongoose.Schema({
    title : { type:String, },
    poster : String, 
    rating : String,
    type:String,
    introduction : String,
    created_at : { type:Date, default : Date.now },
    update_at : {  type:Date, default : Date.now },

})

var ants = mongoose.model('ANTS',messageScheam);

module.exports = ants;